<?php

namespace App\Http\Requests\Backend;

use App\Http\Requests\Requests;
use Illuminate\Foundation\Http\FormRequest;

class CardRequests extends Requests
{
     

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'card_num' => 'required',
            'card_money' => 'numeric|required'
        ];
    }


    public function attributes() 
    {
        return [
            'card_num' => '卡号',
            'card_money' => '卡余额'
        ];
    }

}
